# Copyright (c) 2012 SameGoal LLC.
# All Rights Reserved.
# Author: Andy Hochhaus <ahochhaus@samegoal.com>

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

{
  'targets': [
    {
      'target_name': 'event_server',
      'type': '<(library)',
      'include_dirs': [
        '../../../..',
      ],
      'dependencies': [
        '../../headers/headers.gyp:net_http_headers_helper',
        '../../../../base/base.gyp:base',
        '../../../../base/base.gyp:string',
        '../../../../third_party/google-glog/glog.gyp:glog',
        '../../../../third_party/gflags/gflags.gyp:gflags',
        '../../../../third_party/libcxx/libcxx.gyp:libcxx',
        '../../../../third_party/libevent/libevent.gyp:libevent',
        '../../../../third_party/openssl/openssl.gyp:openssl',
        '../../../../third_party/re2/re2.gyp:re2',
        '../../../../third_party/zlib/zlib.gyp:gzip',
        '../../../../util/worker_pool/worker_pool.gyp:worker_pool',
      ],
      'sources': [
        'connection.cc',
        'event_server.cc',
        'handler.cc',
        'proxy_request.cc',
        'request.cc',
      ],
    },
    {
      'target_name': 'event_server_test',
      'type': 'executable',
      'include_dirs': [
        '../../../..',
      ],
      'dependencies': [
        'event_server',
        '../../../../third_party/googletest/gtest.gyp:gtest',
        '../../../../third_party/google-glog/glog.gyp:glog',
        '../../../../third_party/gflags/gflags.gyp:gflags',
        '../../../../third_party/libcxx/libcxx.gyp:libcxx',
        '../../../../third_party/libevent/libevent.gyp:libevent',
        '../../../../util/worker_pool/worker_pool.gyp:worker_pool',
      ],
      'sources': [
        'event_server_test.cc',
      ],
    },
  ],
}
